﻿



using System; 
using System.Collections;
using System.Collections.Generic ;
using System.Runtime.Serialization;

namespace MF.HSD.CreateVoucherBP
{
	/// <summary>
	/// 凭证行集合 DTO :自定义的数据传输类型 
	/// 
	/// </summary>
	[DataContract(Name = "MF.HSD.CreateVoucherBP.VoucherLineDTOData", Namespace = "http://www.UFIDA.org/EntityData",IsReference=true)]
	[Serializable]
	[KnownType("GetKnownTypes")]
	public partial class VoucherLineDTOData : UFSoft.UBF.Business.DataTransObjectBase
	{
		public static IList<Type> GetKnownTypes()
        {
            IList<Type> knownTypes = new List<Type>();
                                                                
            knownTypes.Add(typeof(MF.HSD.CreateVoucherBP.VoucherDTOData));                                        
            knownTypes.Add(typeof(UFSoft.UBF.Util.Data.MultiLangDataDict));
            return knownTypes;
        }
		/// <summary>
		/// Default Constructor
		/// </summary>
		public VoucherLineDTOData()
		{
			initData();
		}
		private void initData()
		{
		
					MoneyDr=0m; 
		
		
		
					MoneyCr=0m; 
		
		

			//调用默认值初始化服务进行配置方式初始化
			UFSoft.UBF.Service.DTOService.InitConfigDefault(this);
		}
		[System.Runtime.Serialization.OnDeserializing]
        internal void OnDeserializing(System.Runtime.Serialization.StreamingContext context)
        {
			 initData();
        }
		#region Do SerializeKey -ForDTODataType
		//只为处理集合型EntityKey。原因集合型EntityKey由于使用臫的集合对象，无法实现数据共享.-UBF专用.
		public void DoSerializeKeyList(IDictionary dict)
		{
			if (dict == null ) dict = new Hashtable() ;
			if (dict[this] != null)
				return ;
			dict[this] = this;
	        	        	        	        	        			if (this.VoucherDTO != null) 
			{
				this.VoucherDTO.DoSerializeKeyList(dict);
			}
	        	        	        
		}
		#endregion 
		/// <summary>
		/// Constructor Full Argument
		/// </summary>
		public VoucherLineDTOData(  System.String lineNum  , System.Decimal moneyDr  , System.String accountCode  , System.String account  , MF.HSD.CreateVoucherBP.VoucherDTOData voucherDTO  , System.Decimal moneyCr  , System.String segmentNumber  , System.String segmentValue  )
		{
			initData();
			this.LineNum = lineNum;
			this.MoneyDr = moneyDr;
			this.AccountCode = accountCode;
			this.Account = account;
			this.VoucherDTO = voucherDTO;
			this.MoneyCr = moneyCr;
			this.SegmentNumber = segmentNumber;
			this.SegmentValue = segmentValue;
		}
		#region System Fields 
		//--系统字段,目前没有.EntityData上有相应的字段,用于保存相关的实体状态信息,DTO上没有状态信息.	
		#endregion
		
		#region DTO Properties 
	
		

		/// <summary>
		/// LineNum
		/// 凭证行集合.Misc.LineNum
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_lineNum ;
		public System.String LineNum
		{
			get	
			{	
				return m_lineNum ;
			}
			set	
			{	
				m_lineNum = value ;	
			}
		}
			
		

		/// <summary>
		/// MoneyDr
		/// 凭证行集合.Misc.MoneyDr
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.Decimal m_moneyDr ;
		public System.Decimal MoneyDr
		{
			get	
			{	
				return m_moneyDr ;
			}
			set	
			{	
				m_moneyDr = value ;	
			}
		}
			
		

		/// <summary>
		/// AccountCode
		/// 凭证行集合.Misc.AccountCode
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_accountCode ;
		public System.String AccountCode
		{
			get	
			{	
				return m_accountCode ;
			}
			set	
			{	
				m_accountCode = value ;	
			}
		}
			
		

		/// <summary>
		/// Account
		/// 凭证行集合.Misc.Account
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_account ;
		public System.String Account
		{
			get	
			{	
				return m_account ;
			}
			set	
			{	
				m_account = value ;	
			}
		}
			
		

		/// <summary>
		/// 凭证集合
		/// 凭证行集合.Misc.凭证集合
		/// </summary>
		[DataMember(IsRequired=false)]
		private MF.HSD.CreateVoucherBP.VoucherDTOData m_voucherDTO ;
		public MF.HSD.CreateVoucherBP.VoucherDTOData VoucherDTO
		{
			get	
			{	
				return m_voucherDTO ;
			}
			set	
			{	
				m_voucherDTO = value ;	
			}
		}
			
		

		/// <summary>
		/// MoneyCr
		/// 凭证行集合.Misc.MoneyCr
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.Decimal m_moneyCr ;
		public System.Decimal MoneyCr
		{
			get	
			{	
				return m_moneyCr ;
			}
			set	
			{	
				m_moneyCr = value ;	
			}
		}
			
		

		/// <summary>
		/// SegmentNumber
		/// 凭证行集合.Misc.SegmentNumber
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_segmentNumber ;
		public System.String SegmentNumber
		{
			get	
			{	
				return m_segmentNumber ;
			}
			set	
			{	
				m_segmentNumber = value ;	
			}
		}
			
		

		/// <summary>
		/// SegmentValue
		/// 凭证行集合.Misc.SegmentValue
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_segmentValue ;
		public System.String SegmentValue
		{
			get	
			{	
				return m_segmentValue ;
			}
			set	
			{	
				m_segmentValue = value ;	
			}
		}
			
		#endregion	

		#region Multi_Fields
																
		#endregion 
	} 	
}

	
